package com.itheima.account.service.impl;

import com.itheima.account.service.IAccountService;
import org.springframework.beans.factory.FactoryBean;

public class MyService8 implements IAccountService {
    public void sayResult(){
        System.out.println("我是 myService8 的实例");
    }

    @Override
    public void saveAccount() {

    }
}
class MyService8Factory implements FactoryBean<MyService8>{
    //返回实例对象
    @Override
    public MyService8 getObject() throws Exception {
        return new MyService8();
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
